package com.personal.bo;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

@Data
@ApiModel(value = "找回密码Bo", description = "用于找回密码需要的参数")
public class FindPasswordBO {

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("邮箱")
    @NotNull(message = "邮箱不能为空")
    private String email;

    @ApiModelProperty("邮箱验证码")
    @NotNull(message = "验证码不能为空")
    private String code;

    @ApiModelProperty("新密码")
    @NotNull(message = "密码不能为空")
    private String newPassword;

}
